package com.eshopkeeper.provider.sys;

import java.util.Map;

import com.baomidou.mybatisplus.plugins.Page;
import com.eshopkeeper.core.base.BaseProviderImpl;
import com.eshopkeeper.model.sys.SysEvent;
import com.weibo.api.motan.config.springsupport.annotation.MotanService;

//@CacheConfig(cacheNames = "sysEvent")
@MotanService(basicService = "serviceBasicConfig")
public class SysEventProviderImpl extends BaseProviderImpl<SysEvent> implements ISysEventProvider {
	
	public Page<SysEvent> query(Map<String, Object> params) {
        Page<Long> page = this.getPage(params);
        page.setRecords(mapper.selectIdByMap(page, params));
        return getPage(page);
	}
}
